package com.java.model;

/**
 * @desc
 * @version 2016年5月14日
 */
public class Mail {
	private Integer id;
	private String toAddress;// 收件人地址
	private String fromAddress;// 发件人地址
	private String sendTime;// 发送时间
	private String context;// 发送内容
	private String type;// 类型1收件，2发件

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getToAddress() {
		return toAddress;
	}

	public void setToAddress(String toAddress) {
		this.toAddress = toAddress;
	}

	public String getFromAddress() {
		return fromAddress;
	}

	public void setFromAddress(String fromAddress) {
		this.fromAddress = fromAddress;
	}


	public String getSendTime() {
		return sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	@Override
	public String toString() {
		return "Mail [id=" + id + ", toAddress=" + toAddress + ", fromAddress=" + fromAddress + ", sendTime=" + sendTime
				+ ", context=" + context + ", type=" + type + "]";
	}

}
